package com.job.Gai_Yian.Homework0716;

/**
 * @author Gai_Yian
 * @version 1.0
 * @since 2022-07-16 14:37:37
 */
public class StringBuffer01 {
    public static void main(String[] args) {
        String str="A";
        long t1=System.currentTimeMillis();
        StringBuffer sbf=new StringBuffer(str);
        for (int i = 1; i <= 100000 ; i++) {
            sbf.append(i);
        }
        str=sbf.toString();
        long t2=System.currentTimeMillis();
        System.out.println(t2-t1+"ms");
    }
}
